package com.chushouya.product.dto.admin.product.evaluate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@ApiModel("评估选项模板")
public class TempEvaluateItemAddDTO {

    @ApiModelProperty(value = "评估项目id", required = true)
    @NotNull(message = "评估项目id不能为空")
    private Long itemId;

    @ApiModelProperty(value = "评估项目名称", required = true)
    @NotNull(message = "评估项目名称不能为空")
    private String itemName;

    @ApiModelProperty(value = "评估项目选项类型", required = true)
    @NotNull(message = "评估项目选项类型不能为空")
    private Integer selectType;

    @ApiModelProperty(value = "排序", required = true)
    @NotNull(message = "评估项目排序不能为空")
    private Integer sort;

    private Long skuId;

    @ApiModelProperty(value = "评估项目选项列表", required = true)
    @NotEmpty(message = "评估项目选项列表不能为空")
    private List<TempEvaluateItemValueAddDTO> values;

}
